<?php 

include 'inc/includes.php';

$section = 'inbox';
if (isset($_GET['sent'])) $section = 'sent';

$items = array();
for($i = 1; $i <= 5; $i++) {
	$mid = 123 . $i;
	$items['mid-'. $mid] = new stdClass();
	$items['mid-'. $mid]->mid = $mid;
	$items['mid-'. $mid]->from = ($section == 'sent' ? 'Demo User' : '_Eagle');
	$items['mid-'. $mid]->subject = ($section == 'sent' ? 'RE: ' : '') . 'Happy Holidays';
	$items['mid-'. $mid]->date = date('M dS, Y h:iA', 1368895566);
	$items['mid-'. $mid]->uid = 1; // From user's uid
	$items['mid-'. $mid]->message = 'Happy Holidays from the bird<br /><br />Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse id ultricies ante. Aenean id dui mi. Mauris erat ante, aliquet id congue quis, malesuada at nisi. Phasellus in sapien mauris, at facilisis diam. Phasellus dignissim egestas tristique. Nunc aliquam elit at magna ultrices facilisis. Pellentesque quis urna accumsan leo semper aliquam quis a arcu. Ut viverra lacinia vehicula. Proin nec sem et odio adipiscing porttitor.<br /><br />_Eagle';
}

$items = json_encode($items);

include 'views/'. SITE_THEME .'/inbox.php';